﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="ShareMarking.Web.admin.EnterPrise.hospital.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>列表</title>
<script type="text/javascript" src="/scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="/admin/js/layout.js"></script>
<link  href="/css/pagination.css" rel="stylesheet" type="text/css" />
<link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
<script src="../../../scripts/jquery/jquery.lazyload.min.js" type="text/javascript"></script>
<script>
    $(function () {
        $("img").lazyload({ effect: "fadeIn" });
    });
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
  <a href="/admin/center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div class="toolbar-wrap">
  <div id="floatHead" class="toolbar">
    <div class="l-list">
      <ul class="icon-list">
        <li >
            <asp:LinkButton ID="btnExport" runat="server" CssClass="save" OnClick="btnDownload_Click" 
                OnClientClick=" return ConfirmPostBack('btnExport','确定要导出吗？');"><i></i><span>导出所有医院信息</span>
            </asp:LinkButton>
        </li>
      </ul>
      <div class="menu-list">
      </div>
    </div>
    <div class="r-list" style="display:none">
      <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
      <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" onclick="btnSearch_Click">查询</asp:LinkButton>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--模糊查询-->
<div class="det-list clearfix">
        <div class="group btm">
            <div class="control">
                <div class="title">
                    医院编号</div>
                <asp:TextBox ID="txtCode__c" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    医院名称</div>
                <asp:TextBox ID="txtName__c" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    医院大区</div>
                <asp:TextBox ID="txtRegion__c" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    医院片区</div>
                <asp:TextBox ID="txtArea__c" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    员工编号</div>
                <asp:TextBox ID="txtMSR_StaffID__c" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    医院激活</div>
               <asp:DropDownList ID="ddlISdraw" runat="server" CssClass="input normal" AutoPostBack="True" AppendDataBoundItems="true" Visible="true"
                            OnSelectedIndexChanged="ddlISdraw_SelectedIndexChanged">
                            <asp:ListItem Value="true">是</asp:ListItem>  
                            <asp:ListItem Value="false">否</asp:ListItem>
                            <asp:ListItem Value="所有">所有</asp:ListItem>
                        </asp:DropDownList>
            </div>
            <div class="control2">
             <div class="btn-list" style="margin-left:20px">
                <asp:Button ID="btnDetailedSearch" runat="server" Text="搜索" CssClass="btn" OnClick="btnDetailedSearch_Click" />
            </div>      
            </div>                           
        </div>
 </div>

<!--列表-->
<asp:Repeater ID="rptList" runat="server">
<HeaderTemplate>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
  <tr>
    <th width="8%">医院编号</th>
    <th width="8%">医院名称</th>
    <th width="8%">医院大区</th>
    <th width="8%">医院片区</th>
    <%--<th width="8%">医院所属人</th>--%>
    <th width="8%">医院所属员工编号</th>
    <th width="8%">医院已激活</th>
    <th width="8%">二维码</th>
  </tr>
</HeaderTemplate>
<ItemTemplate>
  <tr>
    <td align="center"><%#Eval("Code__c")%></td>
    <td align="center"><%#Eval("Name__c")%></td>
    <td align="center"><%#Eval("Region__c")%></td>
    <td align="center"><%#Eval("Area__c")%></td>
    <%--<td align="center"><%#Eval("Owner__c")%></td>--%>
    <td align="center"><%#Eval("MSR_StaffID__c")%></td>
    <td align="center"><%#Eval("Active__c").ToString()=="True"?"是":"否"%></td>
    <td align="center"><img width="80px" src='<%#geturl((Eval("Code__c")).ToString())%>' /></td>
  </tr>
</ItemTemplate>
<FooterTemplate>
  <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"13\">暂无记录</td></tr>" : ""%>
</table>
</FooterTemplate>
</asp:Repeater>
<!--/列表-->

<!--内容底部-->
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" ontextchanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
  </div>
  <div id="PageContent" runat="server" class="default"></div>
</div>
<!--/内容底部-->
</form>
</body>
</html>
